@echo off
REM 大鹏
REM 0.2
REM 文件批量创建复制工具

REM 创建到
cd /d %~dp0
set dirPathName=%~dp0

echo Start creating..............................

for /l %%a in (1 1 %2) do md %dirPathName%to\%%a 
echo Created successfully.........................

REM ①源文件
set primitive=%dirPathName%\from\%1

REM ②目的文件夹
set destination=%dirPathName%\to\

REM ③循环次数
set time=%2

REM 循环复制
REM for /l %%i in (1, 1, %time%) do copy /y %primitive% %destination%%%i.xls
echo Start copying..................................
for /l %%i in (1, 1, %time%) do copy /y %primitive% %destination%%%i
echo Copy succeeded.................................

REM 展示过程
pause